<?php
declare (strict_types = 1);

namespace app\common\controller;

use app\common\util\ApiUtil;
use app\auth\service\AdminService;
use app\common\upload\Image;

class CommonController
{
    // 用户列表
    public function userInfo(AdminService $adminService){
        $list = $adminService->select();
        return ApiUtil::normal($list);
    }

    public function upload(Image $image){
        return $image->upload();
    }
}
